package com.beiding.v2.test.pg;

import com.beiding.v2.base.IContext;
import com.beiding.v2.base.IUnit;
import com.beiding.v2.base.IUnitHandler;
import com.beiding.v2.element.IStatement;

public class StatementHandler implements IUnitHandler<IStatement> {
    @Override
    public boolean canHandle(IUnit unit) {
        return unit instanceof IStatement;
    }

    @Override
    public String handle(IContext context, IStatement unit) {
        return unit.getStatement();
    }
}
